<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
form.on('submit(foemDemo)'function(data)){
table.reload('demo',{
where:data.field
});
return false
});
form.on('submit(editBtn)'function(data)){
$.post()'StudentServlet?method=edit'.
data.foeld,
function(res){
location.reload();
},'text'
);
return false;
});
<form id="edit"class="layui-foem"style="display:none"lay-filter="edit">
<div class="layui-form-item">
<lable class="layui-form-label">学号<label>
<div class="layui-input-block">
<input type="text"name="sid"class="layui-input"readonly="readonly">
</div>
<div class="layui-form-item">
<lable class="layui-form-label">姓名<label>
<div class="layui-input-block">
<input type="text"name="sid"class="layui-input"readonly="readonly">
</div>
<div class="layui-form-item">
<lable class="layui-form-label">年龄<label>
<div class="layui-input-block">
<input type="text"name="sid"class="layui-input"readonly="readonly">
</div>
<div class="layui-form-item">
<div class="layui-input-block">
<button class="layui-btn"lay-submit lay-filter="editBtn">确定</button>
<button typr="reset"class="layui-btn layui-btn-primary">重置</button>
</div>
</div>

</form>
</body>
</html>